package main

import (
	"context"
	"fmt"
	"github.com/gomodule/redigo/redis"
)

var ctx = context.Background()

func ExampleClient() {
	c, err := redis.Dial("tcp", "192.168.133.2:6379")
	if err != nil {
		fmt.Println(err)
		return
	}
	defer c.Close()
	reply, err := c.Do("info")
	fmt.Println(redis.String(reply, err))
	c.Do("set", "aa", "34")
}
func main() {
	ExampleClient()
}
